package com.webproject.service.impl.employeeManager;

import com.webproject.core.Page;
import com.webproject.dao.employeeManager.EmployeeManagerDao;
import com.webproject.entity.emplayeeManager.Attence;
import com.webproject.entity.emplayeeManager.Employee;
import com.webproject.entity.emplayeeManager.WorkPlan;
import com.webproject.service.employeeManager.EmployeeManagerService;

public class EmployeeManagerServiceImpl implements EmployeeManagerService {

	private EmployeeManagerDao employeeManagerDao;
	public EmployeeManagerDao getEmployeeManagerDao() {
		return employeeManagerDao;
	}

	public void setEmployeeManagerDao(EmployeeManagerDao employeeManagerDao) {
		this.employeeManagerDao = employeeManagerDao;
	}

	@Override
	public void queryEmployee(Page page) {
		// TODO Auto-generated method stub
		page.setRows(employeeManagerDao.queryEmployee(page));
		page.setRecords(employeeManagerDao.queryEmployeeCount(page));
	}

	@Override
	public void saveEmployee(Employee employee) {
		// TODO Auto-generated method stub
		employeeManagerDao.saveEmployee(employee);
	}

	@Override
	public void updateEmployee(Employee employee) {
		// TODO Auto-generated method stub
		employeeManagerDao.updateEmployee(employee);
	}

	@Override
	public void queryWorkPlan(Page page) {
		// TODO Auto-generated method stub
		page.setRows(employeeManagerDao.queryWorkPlan(page));
		page.setRecords(employeeManagerDao.queryWorkPlanCount(page));
	}

	@Override
	public void saveWorkPlan(WorkPlan workPlan) {
		// TODO Auto-generated method stub
		employeeManagerDao.saveWorkPlan(workPlan);
	}

	@Override
	public void updateWorkPlan(WorkPlan workPlan) {
		// TODO Auto-generated method stub
		employeeManagerDao.updateWorkPlan(workPlan);
	}

	@Override
	public void deleteWorkPlan(WorkPlan workPlan) {
		// TODO Auto-generated method stub
		employeeManagerDao.deleteWorkPlan(workPlan);
	}

	@Override
	public void queryAttence(Page page) {
		// TODO Auto-generated method stub
		page.setRows(employeeManagerDao.queryAttence(page));
		page.setRecords(employeeManagerDao.queryAttenceCount(page));
	}

	@Override
	public void saveAttence(Attence attence) {
		// TODO Auto-generated method stub
		employeeManagerDao.saveAttence(attence);
	}

	@Override
	public void updateAttence(Attence attence) {
		// TODO Auto-generated method stub
		employeeManagerDao.updateAttence(attence);
	}

}
